import java.util.Objects;
import java.util.Scanner;

public class StimulatedLogin {
    public static void main(String[] args) {
        String password ="1234qqq";
        Scanner scanner = new Scanner(System.in);
        for(int i =3;i>0;i--){
            String InputPassword = scanner.nextLine();
            if(Objects.equals(InputPassword, password)){
                System.out.println("密码正确");
                break;
            }else{
                System.out.println("密码错误还有"+(i-1)+"次机会");
            }
        }
    }
}
